package com.wanlian.router.net.netty2.msg.Device;

import com.wanlian.router.utils.JsonStringUtil;
import com.wanlian.router.net.netty2.msg.BaseMsg; import com.wanlian.router.net.netty2.msg.Device.model.IpInfo; import com.wanlian.router.utils.JsonStringUtil;
import com.wanlian.router.net.netty2.msg.MsgType;

/**
 * 获取当前网络信息
 */
public class CurrentIpInfoReply extends BaseMsg {

    private IpInfo ipInfo;

    public CurrentIpInfoReply() {
        super();
        this.setType(MsgType.DEVICE_STATUS_CURRENT_REP);
    }

    public IpInfo getIpInfo() {
        return ipInfo;
    }

    public void setIpInfo(IpInfo ipInfo) {
        this.ipInfo = ipInfo;
        this.setContent(JsonStringUtil.writeValueAsString(ipInfo));
    }
}
